import { defineConfig } from 'vite'
import { createVuePlugin as vue } from 'vite-plugin-vue2'

const path = require('path')

// https://vitejs.dev/config/
export default defineConfig({
    // define: {
    //     'process.env': JSON.stringify(import.meta.env)  // 将环境变量映射到process.env‌:ml-citation{ref="7" data="citationList"}
    // },
    plugins: [vue()],
    resolve: {
        alias: [
            {
                find: /^@\/(.+)/,
                replacement: path.resolve(__dirname, 'src') + '/$1'
            }
        ]
    }
})
